--- 布阵伙伴信息类
---
--- @class BattleTeamPartnerInfo
BattleTeamPartnerInfo = Class("BattleTeamPartnerInfo")
local BattleTeamPartnerInfo = BattleTeamPartnerInfo

--- @public
--- @return BattleTeamPartnerInfo
function BattleTeamPartnerInfo:ctor(team,site)
	self.partnerId = nil; -- 角色唯一id 没上阵角色时为 0;
	self.partnerModelId = nil; -- 角色modelId;
	self.level = nil; -- 角色等级;
	self.star = nil; -- 角色星级;
	self.weaponLevel = nil; -- 角色专武等级;
	self.icon = nil; -- 角色头像;
	self.state = 0; -- 角色状态(如果是工会boss则0为可上阵 1为已上阵 2为已上阵相同英雄 EnumConst.GuildStateType)
	self.type = nil; -- 职业id;
	self.power = nil; -- 角色战力;
	self.teamIndex = team; -- 队伍id;
	self.site = site;
	self.masterName = nil;--拥有者名字
	self.playerId = nil;
	self.skinId = 0;
end
--重置对象信息
function BattleTeamPartnerInfo:reset(team,site)
	self.partnerId = nil;
	self.partnerModelId = nil;
	self.level = nil;
	self.star = nil;
	self.weaponLevel = nil;
	self.icon = nil;
	self.state = 0;
	self.type = nil;
	self.power = nil;
	self.masterName = nil;
	self.playerId = nil
	self.teamIndex =  team and team or self.teamIndex;
end
--修改布阵角色信息
function BattleTeamPartnerInfo:setInfo(data,team,site)
	self.partnerId = tostring(data.partnerId);
	self.partnerModelId = data.partnerModelId;
	self.level = data.level;
	self.star = data.star;
	self.weaponLevel = data.weaponLevel;
	self.type = data.type;
	self.state = data.state;
	self.power = data.power;
	self.icon = data.icon;
	self.teamIndex = team and team or self.teamIndex;
	self.masterName = data.masterName;
	self.playerId = data.playerId
	self.site = site;
	self.skinId = data.skinId;
end
